package factory

import (
	"irisx/x/v"
	"irisx/x/u"
	"irisx/x/c"
)

type CnSingleW struct {}

// 生成中华单姓 女
func (this *CnSingleW) Generate(p *v.CParam) []v.RName{
	var F = ""
	var B = ""
	if p.FirstWords != ""{
		F = p.FirstWords
	}
	if p.LastWords != ""{
		B = p.LastWords
	}
	var names []v.RName
	rn := v.RName{
		Tag: v.W,
	}
	for i:=0;i<p.Number;i++{
		rn.Name = u.CreateNameDefault(F,B,p.Length,c.SingleLen,c.Single,c.WNameLen,c.WName,int64(i))
		names = append(names,rn)
	}
	return names
}
